Purpose |
Copy and resize a bitmap to the selected graphic target. |
||||||||||||||||||||||||||||||||
Syntax |
GRAPHIC STRETCH hBmp, ID, (x1,y1)-(x2,y2) TO (x3,y3)-(x4,y4) [, Mix, Stretch] GRAPHIC STRETCH PAGE hBmp, ID [, Mix, Stretch] |
||||||||||||||||||||||||||||||||
Remarks |
You can copy a complete bitmap, or a portion of it, to the selected graphic target, while resizing it to a larger or smaller size. The handle variable hBmp specifies the handle of the source bitmap, control, or window. The parameter ID is the control identifier (1 to 65535) assigned with the CONTROL ADD GRAPHIC. ID must be zero (0) for a GRAPHIC WINDOW or a bitmap. The destination of the stretch operation is always the attached graphic target. The bitmap is automatically resized to fit the destination parameters. You must use care that your parameters are valid for the specified bitmap, or the result of the operation is undefined. The second form, GRAPHIC STRETCH PAGE, is a shortcut for copying a complete bitmap to the clip or client area of the selected graphic target. The image is automatically stretched or condensed to fit the target appropriately. |
||||||||||||||||||||||||||||||||
Mix |
If the Mix parameter is included, it is one of the values in the following table. If not included, or the value zero (0), a default of %mix_CopySrc is presumed. There are 16 mix modes available to use for mixing drawing colors with the colors which already exist at the drawing location. The mix mode equates are predefined in PowerBASIC.
|
||||||||||||||||||||||||||||||||
Stretch |
If the stretch& parameter is included, it is one of the values in the following table. If not included, or it is the value zero (0), the stretch mode is unchanged. An appropriate choice of stretch mode can substantially enhance the quality of bitmaps which are changed in size. The stretch mode equates are predefined in PowerBASIC.
|
||||||||||||||||||||||||||||||||
See also |
GRAPHIC COPY, GRAPHIC IMAGELIST, GRAPHIC RENDER, GRAPHIC SET STRETCHMODE |